﻿<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="UpdateRole.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.UpdateRole" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />

 <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
        
    <style type="text/css">
       
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 81px;
        }
       
    </style>
        
    </asp:Content>
    
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="detailstable">
   
    <tr>
        <td  >
            User Type:</td>
        <td  >
            <asp:DropDownList ID="ddlUserType" runat="server" 
                onselectedindexchanged="ddlRoleType_SelectedIndexChanged" 
                AutoPostBack="True" CssClass="ddl">
            </asp:DropDownList>
        </td>
        <td  >
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td  >
<asp:Label ID="Label1" runat="server" Text="Role Name" CssClass="lbl1"></asp:Label>
            :</td>
        <td  >
            <asp:DropDownList ID="ddlRole" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlRole_SelectedIndexChanged" CssClass="ddl">
            </asp:DropDownList>
        </td>
        <td  >
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td  >
            New Role Name*:</td>
        <td  >
            <asp:TextBox ID="txtNewRole" runat="server" style="margin-left: 1px" CssClass="txtbox"></asp:TextBox>
        </td>
        <td  >
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtNewRole" Display="Dynamic" text="*"
                ErrorMessage=""></asp:RequiredFieldValidator>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td  >
            New User Type:</td>
        <td  >
            <asp:DropDownList ID="ddlNewUserType" runat="server" 
                onselectedindexchanged="ddlNewUserType_SelectedIndexChanged" CssClass="ddl">
            </asp:DropDownList>
        </td>
        <td  >
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td  >
            Enabled:</td>
        <td  >
            <asp:CheckBox ID="chkEnabled" runat="server" CssClass="chbox"/>
        </td>
        <td  >
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td class="pix8"  >
            </td>
        <td  >
            </td>
        <td  >
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    
    <tr>
        <td   colspan="4">
            
            <table cellpadding="0" cellspacing="0" class="style1">
                <tr>
                    <td class="style2">
<asp:Button ID="btnUpdateRole" runat="server"
    Text="Update Role" style="height: 23px" onclick="btnUpdateRole_Click" 
                Visible="False" CssClass="btn" onclientclick="validationSummery();" 
                            Width="76px"/>
                    </td>
                    <td>
            <asp:Button ID="btnCancel" runat="server" onclick="Button1_Click"
                Text="Cancel" CssClass="btn" Width="76px"/>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    
    <tr>
        <td  >
            &nbsp;</td>
        <td  >
            <asp:Label ID="lblError" runat="server" CssClass="lbl"></asp:Label>
        </td>
        <td  >
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>
</asp:Content>